<template>
  <common-card title="累计销售额" :value="salesToday">
    <template>
      <div class="compare-warpper">
        <div class="compare">
          <span>日同比</span>
          <span class="emphasis">{{ salesGrowthLastDay }}</span>
          <div class="increase"></div>
        </div>
        <div class="compare">
          <span>月同比</span>
          <span class="emphasis">{{ salesGrowthLastMonth }}</span>
          <div class="decrease"></div>
        </div>
      </div>
    </template>
    <template #footer>
      <span>昨日销售额 </span>
      <span class="emphasis">{{ salesLastDay }}</span>
    </template>
  </common-card>
</template>
<script>
import cardMixin from '../../mixins/cardMixin'
import dataMixin from '../../mixins/dataMixin'
export default {
  mixins: [cardMixin, dataMixin]
}
</script>
<style lang="scss" scoped>
.compare-warpper {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  .compare {
    display: flex;
    align-items: center;
    font-size: 12px;
    margin-top: 3px;
    color: #666;
  }
}
</style>
